﻿
namespace DotNetDAL.Utils
{
    /// <summary>
    /// 属性或字段复制工具
    /// </summary>
    /// <typeparam name="F"></typeparam>
    public class CopyUtils
    {

        private object data { get; set; }

        public CopyUtils(object fData)
        {
            data = fData;
        }
        /// <summary>
        /// 复制
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <returns></returns>
        public T Copy<T>() where T : class
        {
            return UtilPackage.Copy<T>(data);
        }
    }
}
